package Mangos::DB::Mangos::MailLevelReward;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'mail_level_reward',

    columns => 
    [
        level          => { type => 'integer', not_null => 1 },
        raceMask       => { type => 'integer', not_null => 1 },
        mailTemplateId => { type => 'integer', default => '0', not_null => 1 },
        senderEntry    => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'level', 'raceMask' ],
);

1;

package Mangos::DB::Mangos::MailLevelReward::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::MailLevelReward' }

__PACKAGE__->make_manager_methods('mail_level_reward');

1;
